home *** CD-ROM | disk | FTP | other *** search
- Path: news.genie.net!usenet
- From: i.einman@genie.com (IAN J. EINMAN)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Amiga Memory Map Needed! / ExecBase
- Date: 7 Feb 1996 07:04:12 GMT
- Organization: via GEnie Services (1-800-638-9636 or info@genie.com)
- Sender: i.einman@genie.com (IAN J. EINMAN)
- Message-ID: <4f9itc$ld8@rock101.genie.net>
- NNTP-Posting-Host: rock103.is.ge.com
-
- >>True, but interrupt programming is something that should be hidden
- in the os. No application needs to know about interrupts, I think.
- So it's allright if internally the os uses absolute addresses, but
- there is no need to make anything external rely on them. Or even
- know about them.
-
-
- ExecBase being absolute: It has to be! The application MUST know exactly where Exec
- is at. The OpenLibrary function is in Exec, so if Exec was an openable library with
- a variable base address, this would be a paradox.
-
- If the ExecBase was obtained in a different way, how? If it moved around, how could
- you find it? It is virtually impossible to not have at least one absolute address in
- a system. The only way to circumvent it would be to pass the ExecBase pointer in a
- register to the program when it first starts... but that wouldn't be too platform
- independent either.
-
- There is NO way to run a program that accesses any OS function without relying on
- either: fixed addresses, fixed register(s), or fixed interrupts. (like the Mac;
- 0xA000 line interrupts call system functions.)
-
-